//
//  SheetMenuTableViewCell.m
//  one_mile_01
//
//  Created by 王雅蓉 on 15/10/30.
//  Copyright © 2015年 王雅蓉. All rights reserved.
//

#import "SheetMenuTableViewCell.h"

@implementation SheetMenuTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setCellviews];
    }
    return self;
}

-(void)setCellviews
{
    self.sheetTitleL = [[UILabel alloc] initWithFrame:CGRectMake(10 * FITRATE, 10 * FITRATE, WIDTH - 10 * FITRATE * 2, 60 * FITRATE - 10 * FITRATE * 2)];
    self.sheetTitleL.textAlignment = NSTextAlignmentCenter;
    self.sheetTitleL.numberOfLines = 2;
    [self.contentView addSubview:_sheetTitleL];
    
    UILabel *aLine = [[UILabel alloc] initWithFrame:CGRectMake(0, 60 * FITRATE - 0.5 * FITRATE, [UIScreen mainScreen].bounds.size.width, 0.25 * FITRATE)];
    aLine.backgroundColor = [UIColor colorWithRed:112 / 255.0 green:112 / 255.0 blue:112 / 255.0 alpha:1.0];
    [self.contentView addSubview:aLine];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
